package com.des1gn.serviceb.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.des1gn.serviceb.entity.A;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dx
 * @since 2021-06-17
 */
public interface AMapper extends BaseMapper<A> {

    @Update("update a set name = 'timi'")
    Integer updateName();

    @Select("select ${field} from ${table} where id = #{property}")
    String getTransName(@Param("table")String table,@Param("field")String field,@Param("property")String property);

    A getById();

}
